function mytime(){
        var a = new Date();
        
        var b = a.getHours();
        if (b < 10) {
            b = '0'+b;
        }
        var m = a.getMinutes();
        if (m < 10) {
            m = '0'+m;
        }
        var s = a.getSeconds();
        if (s < 10) {
            s = '0'+s;
        }

        var c = a.toLocaleDateString();
        
        document.getElementById("time").innerHTML = c+"&nbsp"+b + ':' + m + ":" + s;
        
        }setInterval(function() {mytime()},1000);